package com.pth.utils.lucene;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import com.pth.utils.TomcatAPI;

public class DirUtils {

	
	private static  String indexpath;

	public static  String getIndexDir(){
		InputStream inputStream = DirUtils.class.getClassLoader().getResourceAsStream("index.properties");   
		 Properties p = new Properties();   
		  try {   
		   p.load(inputStream);   
		  } catch (IOException e1) {   
		   e1.printStackTrace();   
		  }   
		
		  indexpath=p.getProperty("indexpath");
		  
		return indexpath;
		
	}


}
